package cn.lzy.demo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description
 * @Author lzy
 * @Date 2023/12/18 11:07
 * @Version
 **/
public class TestDemo {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");
        ICalculator calculator = ctx.getBean(ICalculator.class);
        int result = calculator.add(2, 3);
        System.out.println("add = " +result);
        System.out.println("================");
        calculator.minus(6, 3);
    }
}
